

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class for Servlet: Show
 *
 */
 public class Show extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
	 public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException
		{
			PrintWriter out = response.getWriter();
			Cookie cookies[] = request.getCookies();
			Cookie c = cookies[0];
			String user=c.getValue();
			Cookie b = cookies[1];
			String pw=b.getValue();


			out.println("You are logged in as "+ user + " with " + pw);

			
		}
}